package com.cyz.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.cyz.pojo.Product;

public interface ProductService {
	public Product getProductById(Integer id) throws SQLException ;
	public List<Product> getProductByTypeName(String typeName);
	public Product getProductByProductName(String ProductName);
	////////////////
	public void addType(String typeName) throws Exception;
	public void deleteType(String typeName);
	public void updateType(String typeName,String newName);
	public String getTypeByName(String typeName);
	public Integer getTypeIdByTypeName(String typeName);
	public void deleteProduct(String productName);
	public void addProduct(Product product);
	public Product getProductByName(String productName);
	public void updateProduct(Product product);
	public Integer getProductIdByName(String productName);
	public List<Product> getProductBypaging(Map<String,Object> map);
	public void renameType(Map map) throws Exception ;
}
